class Animal(object):
    def eat(self):
        print('---吃---')
    def run(self):
        print('---跑---')
    def sleep(self):
        print('---睡---')

class Dog(Animal):
    def bark(self):
        print('---叫---')

class Cat(Animal):
    def catch(self):
        print('---抓老鼠---')

class Xiaotainquan(Dog):
    def fly(self):
        print('---飞---')
ahuang=Dog()
ahuang.sleep()
ahuang.bark()

a=Animal()
xiaotian=Xiaotainquan()
xiaotian.fly()
xiaotian.eat()

print('--------')
class Ao(Dog):
    def face(self):
        print('---猛---')
zangao=Ao()
zangao.face()
zangao.bark()
zangao.eat()

